import request from '@/utils/request'

// 查询思想品德变化列表
export function listMorality(query) {
  return request({
    url: '/gxs/morality/list',
    method: 'get',
    params: query
  })
}

// 查询思想品德变化详细
export function getMorality(gxsId) {
  return request({
    url: '/gxs/morality/' + gxsId,
    method: 'get'
  })
}

// 新增思想品德变化
export function addMorality(data) {
  return request({
    url: '/gxs/morality',
    method: 'post',
    data: data
  })
}

// 修改思想品德变化
export function updateMorality(data) {
  return request({
    url: '/gxs/morality',
    method: 'put',
    data: data
  })
}

// 删除思想品德变化
export function delMorality(gxsId) {
  return request({
    url: '/gxs/morality/' + gxsId,
    method: 'delete'
  })
}


// 我的思想品德变化列表
export function MyListMorality(query) {
  return request({
    url: '/gxs/morality/MyList',
    method: 'get',
    params: query
  })
}
